package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.CourseMode;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程形式形式 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface CourseModeService extends IService<CourseMode> {
	CourseMode AddCourseMode(CourseMode courseMode);

	CourseMode UpdateCourseMode(CourseMode courseMode);

	CourseMode GetCourseMode(Integer id);

	List<CourseMode> SearchCourseModeWithKey(String key,boolean withoutBan);
	
	IPage<CourseMode> ListCourseModeWithTagAndType(Integer count, Integer page, Integer type, Integer tag,boolean withoutBan);

	CourseMode SetCourseModeState(Integer id, Integer state);
}
